/*
 * Concept.java
 *
 * Created on 28 March 2007, 20:51
 *
 */

package rxtokenizer;

/**
 *
 * @author Ruslan Fayzrakhmanov
 */
public class Concept extends Region {
    
    public Concept(int start, int end, IDocument document) {
        super(start, end, document);
    }
    
    public Concept(int start, int end, IDocument document, ConceptType typeInfo) {
        super(start, end, document);
        this.typeInfo = typeInfo;
    }
    
    public Concept(Region region, ConceptType typeInfo) {
        super(region.getStart(), region.getEnd(), region.getDocument());
        this.typeInfo = typeInfo;
    }
    
    public final ConceptType getTypeInfo() {
        return typeInfo;
    }
    
    public final String getValue() {
	return super.getValue();
    }

    public String toString() {
	return getValue();
    }
    
    private ConceptType typeInfo = null;
    
}
